<?php
header("content-type:text/html;charset=utf-8");
$job=$_GET['job'];
$company=$_GET['company'];
$place=$_GET['place'];
$money=$_GET['money'];
$dbh=new PDO('mysql:host=localhost;dbname=mhsw','root','root');
$sql="insert into company(job,company,place,money) VALUES('$job','$company','$place','$money')";
$sqldo=$dbh->exec($sql);
if($sqldo)
{
    header('location:list.php');
}
else{
    echo "添加失败";
}
